package com.iotek.bookstore.modle.service.serviceimpl;

import com.iotek.bookstore.modle.dao.impl.BookContentDaoImpl;
import com.iotek.bookstore.modle.entity.BookContent;

public class BookContentBizImpl extends MyBookstoreBizImpl<BookContent> {
    public BookContentBizImpl() {
        myBookstoreDao=new BookContentDaoImpl();
    }

    /*
    * 添加图书内容信息
    * */
    @Override
    public int insert(BookContent bookContent) {
        return myBookstoreDao.insert(bookContent);
    }

    /*
    * 根据图书ID删除图书信息
    * */
    @Override
    public int delete(int id) {
        return myBookstoreDao.delete(id);
    }

    /*
    * 根据图书ID修改图书信息
    * */
    @Override
    public int update(BookContent bookContent) {
        return myBookstoreDao.update(bookContent);
    }
}
